// 合同状态模块
import request from '@/utils/request'

// 待我签署
export const addContractSign = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/operatedByMe',
    params: data
  })
}

// 待我审批

export const addContractExamine = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/approval-process/receive-me',
    params: data
  })
}

// 他人操作

export const addContractOperation = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/operatedByOthers',
    params: data
  })
}

// 签署成功

export const addContractSuccess = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/complete',
    params: data
  })
}

// 盖章类型

export const addContractType = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/get-contract-sealposition-count',
    params: data
  })
}

// 获取合同信息

export const addContractMessage = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/contract-all-info',
    params: data
  })
}

// 合同预览

export const addContractPreview = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/img/preview-base',
    params: data
  })
}

// 电子签名管理

export const addContractSignature = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/seal-signature/list',
    params: data
  })
}

// 拖拽定位计算摘要

export const addContractAbstract = data => {
  return request({
    method: 'POST',
    url: 'contract-manage/admin/contract/html/drag-signseal-h5',
    data
  })
}

// 固定计算摘要

export const addContractFixed = data => {
  return request({
    method: 'POST',
    url: 'contract-manage/admin/contract/html/signseal',
    data
  })
}

// 签约完成度

export const addContractCompleteness = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/signing-completion',
    params: data
  })
}

// 合同下载

export const addContractDownload = data => {
  return request({
    method: 'GET',
    url: 'contract-manage/admin/contract/contract-download-base',
    params: data
  })
}

// 审核

export const addContractAudit = data => {
  return request({
    method: 'POST',
    url: 'contract-manage/admin/contract/approval-process/approval',
    data
  })
}

// 默认页面

export const addContractTacitly = data => {
  return request({
    method: 'POST',
    url: 'contract-manage/admin/contract/html/drag-signseal',
    data
  })
}
